package scanner;
import java.util.Scanner;
public class scannerDome1 {

    public static void main(String[] args) {
        //demo1();
        demo2();
    }

    public static void demo1() {
    Scanner sc = new Scanner(System.in);

    System.out.println("请输入用户名：");
    String name = sc.next();
    System.out.println("请输入密码：");
    String pwd = sc.next();
    System.out.println("用户名："+name+" 密码："+pwd);
        System.out.println("----------------");

    }
    public static void demo2() {
        int a = 5;
        System.out.println(a+"abc");
        System.out.println(a+5);
        System.out.println(a+5+"abc");
        System.out.println(a+'a'+"ffff");
    }

}
